The problem is that GCC4 is seeing is that variable such as frame (in
grant_table.c) is passed into a function without initialization. Again for the variable sl1mfn (in shadow.c) does the same thing. So really the patches should be:
Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
shadow_make_snapshot(
struct domain *d, unsigned long gpfn, unsigned long gmfn)
{
- unsigned long smfn, sl1mfn;
+ unsigned long smfn, sl1mfn = 0;
void *original, *snapshot;
u32 min_max = 0;
int min, max, length;
struct exec_domain *led;
u16 dev_hst_ro_flags;
int handle;
- unsigned long frame, host_virt_addr;
+ unsigned long frame = 0, host_virt_addr;
int rc;
/* Returns 0 if TLB flush / invalidate required by caller.